<template>
	<view class="">
		
	
	<!-- 共同关注 -->
	<view v-if="commonshow == false">
		<text class="sde">暂无数据</text>
	</view>
	<view v-else>	
		<view class="list" v-for="(item,index) in commonList">
			<view class="lt">
				<u-avatar :src="item.icon" shape="square"></u-avatar>
			</view>
			<view class="rt">
				<text>{{item.nickName}}</text>
			</view>
		</view>
	</view>
	
	</view>
</template>

<script>
	export default {
		props:{
			commonList:{
				type:Array,
				default:[]
			},
			commonshow:{
				type:Boolean,
				default:true
			}
		},
		data() {
			return {
				
			}
		},
		onLoad() {
			console.log(`commonshow`,commonshow)
		},
		methods: {
			
		}
	}
</script>

<style scoped lang="scss">
.list{
	display: flex;
	justify-content: flex-start;
	align-items: center;
	margin-top: 14rpx;
	border-bottom: 1px solid #ccc;
	padding-bottom: 14rpx;
	.lt{
		margin-right: 16rpx;
	}
	.rt{
		text{
			color: #000;
			font-weight: bold;
			font-size: 32rpx;
		}
	}
}
.sde{
	text-align: center;
	font-size: 50rpx;
	font-weight: bold;
	display: block;
	padding: 30rpx;
}
</style>
